package com.chub.study.util;

/**
 * @author : chub
 * @version : V1.0.0
 * @fileName : Constants.java
 * @description : TODO
 * @createTime : 2021-11-18 19:05
 */
public class Constants {

    public static final String REQ_PARAM_CANNOT_BE_EMPTY = "请求参数不能为空。";
    public static final String REQ_HANDLE_SUCC = "请求处理成功。";
    public static final String REQ_HANDLE_FAIL = "请求处理失败。";

    /**
     * 学生类常量
     */
    public interface StudentConstants {
        String XSBH_CANNOT_BE_EMPTY = "学生编号(xsbh)不能为空。";
        String BJBH_CANNOT_BE_EMPTY = "班级编号(bjbh)不能为空。";
        String BJBH_NON_EXISTENT = "班级编号({})不存在。";

        enum TMessageEnum {

            // HANDLE_STATE 处理状态(1-接收报文, 2-无效报文, 3-处理失败, 4-处理完成)
            RECEIVE_MESSAGE("1", "接收报文"),
            INVAILD_MESSAGE("2", "无效报文"),
            HANDLE_FIAL("3", "处理失败"),
            HANDLE_SUCC("4", "处理完成");

            private String code;
            private String desc;

            TMessageEnum(String code, String desc) {
                this.code = code;
                this.desc = desc;
            }

            public String getCode() {
                return code;
            }

            public String getDesc() {
                return desc;
            }


        }


    }



}
